<?php
/* @var $this CreditController */
/* @var $model Credit */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'credit-form',
	'enableAjaxValidation'=>false,
)); ?>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'iduser'); 
		echo $form->dropDownList($model,'iduser', $users);
		 echo $form->error($model,'iduser');
		 ?>
	</div> 

	<div class="row">
		<?php echo $form->labelEx($model,'sodu'); ?>
		<?php echo $form->textField($model,'sodu'); ?>
		<?php echo $form->error($model,'sodu'); ?>
	</div>


	<p class="note">Thông tin bắt buộc <span class="required">*</span></p>


	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Tạo Credit' : 'Cập nhật'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->